<?php

	function button_to_popup($name, $internal_uri, $class = '', $width ='', $height = '')
	{
		if (empty($width)){ $width='490';}
	    if (empty($height)){ $height='490';}
		return button_to($name,$internal_uri,array(
			'popup' => array('true','menubar=no,toolbar=no,scrollbars=yes,width='.$width.',height='.$height.',resizable=yes,left=500,top=80'),
		    'class'  => $class,
  		));
	}

?>